package com.callback.confirmreturndemo.listener;

import com.callback.confirmreturndemo.config.QueueBindExchangeConfig;
import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;
@Slf4j
@Component
@RabbitListener(queues = QueueBindExchangeConfig.QUEUE_NAME)
public class ListenerImpl {
    @RabbitHandler
    public void getMsg(String msg){
        log.info("接收到消息："+msg);
    }
}
